<table width="100%" height="100%" cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td bgcolor="#cccccc" width="200" valign="top"><!-- variable RHS Menu -->
                     	<?php 
	if($_SESSION['user_groups_id']=="6")
	{
		require('templates/menu6.php');
	}
	elseif($_SESSION['user_groups_id']=="8")
	{
		require('templates/menu8.php');
	}	
	else
	{
		require('templates/menu7.php');
	}
	
?>
</td>
    <td valign="top" style="padding:30px 30px 30px 30px;">
	<table border="0" width="420" style="font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px">
        <tr>
          <td><img src="heading/Assign-Accessories-To-Laptops_03.jpg" /></td>
        </tr>

        <tr>
		<td>
		<b><div id="resultshere1" class="errorText">
		<?php
	 if($_REQUEST['aexit']==1)
	{
	echo 'Data already exist';
	}
	 ?>
	 	<?php
	 if($_REQUEST['v']=='err')
	{
	echo 'Location Not Matched';
	}
	 ?>
	 	<?php
	 if($_REQUEST['v']=='success')
	{
	echo 'Your Request has been submitted';
	}
	 ?>
		</div></b>
		</td>
		</tr>
		
      
        <tr>
          <td>
  		 <form name="frmTransfer" id="frmTransfer" method="post" action="assign_acc_to_lap_process.php">
		  <table class="grid" border="0" cellpadding="5" width="100%">
		  <tr>
		  <td>
		  <strong>Laptop Model</strong>
		  </td>
		  <td>
		  <?php
		$sql = mysql_query('SELECT laptop_id,laptop_model,serial_no,box_no  from laptop_details where status="1"');		
		?>
		<select name="laptop_model" id="laptop_model">
		<?php
		while($result = mysql_fetch_row($sql))
				{
					?>
					 <option value="<?php echo $result['0']; ?>"><?php echo trim($result[3]).'-'.trim($result[1]).'-'.trim($result[2]); ?></option>';
					
			<?php } ?>
			</select>
			</td>
        </tr>
				
		
		<tr>
		<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
                <td><b>Accessories Name</b></td>        
                <td><?php $sql1 = mysql_query('SELECT acc.accessoriesdata_id,acc.accessories_name,accstc.depot_location,accstc.quantity FROM accessories_data as acc INNER JOIN accessories_stock as accstc ON acc.accessoriesdata_id = accstc.accessories_id where accstc.quantity!=0'); ?>
<select name="acc_data[]" id="emp_accessories_name" multiple="multiple">
<?php while($result1 = mysql_fetch_row($sql1))
{ ?>
<option value="<?php echo $result1[0].'-'.$result1[1]; ?>"><?php echo $result1[1].'-'.$result1[2]; ?></option>
<?php } ?>
</select>
</td>
              </tr>
			  
			   <tr>
                <td><b>Data Card</b></td>               
				<td><?php $sql2 = mysql_query('SELECT datacard_name,card_no,depot_location FROM data_card where status=0'); ?>
<select name="emp_company_name" id="emp_company_name">
<option value="">Select data card</option>
<?php while($result2 = mysql_fetch_row($sql2))
{ ?>
<option value="<?php echo $result2[0].'-'.$result2[1]; ?>"><?php echo $result2[0].'-'.$result2[1].'-'.$result2[2]; ?></option>
<?php } ?>
</select>
</td>
              </tr>
		<tr>
		<td colspan="2">&nbsp;</td>
		</tr>

		<tr>
		<td colspan="2" align="center"><input type="submit" value="Submit" name="submit" onClick="return Validate_transfer('frmTransfer');">
</td>
		</tr>
		</table>
		</form>
		</td>
		</tr>
      </table></td>
  </tr>
</table>